package com.qianniu.napi.admin.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author chenxuebin
 * @since 2018-12-14
 */
@TableName("t_choujiang")
public class Choujiang extends Model<Choujiang> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 奖品类型@1：积分；2：优惠券；3：商品；4：现金红包；
     */
	private Integer jtype;
	private Long jid;

	private Long gid;

    /**
     * 奖品名称
     */
	private String name;
    /**
     * 面值
     */
	private Integer value;
    /**
     * 奖品数量
     */
	private Integer num;
    /**
     * 截止有效期
     */
	private Date validdate;
    /**
     * 有效天数
     */
	private Integer days;
    /**
     * 抽奖图
     */
	private String pic;
    /**
     * 排序
     */
	private Integer sort;
	/**
	 * 奖品级别
	 */
	private Integer level;
	/**
	 * 每日最大出奖数量
	 */
	private Integer maxnum;

	@TableField("maxnum_puser")
	private Integer maxnumPuser;
	@TableField("maxnum_pday")
	private Integer maxnumPday;

	private Float zhongjianglv;

	private Integer state;
	@JsonIgnore
	private Long mid;
	@JsonIgnore
	private Long uid;
	@JsonIgnore
	private Long mpid;
	@JsonIgnore
	private Long sid;
	@JsonIgnore
	private Long leagueid;
	@JsonIgnore
	private Date createtime;
	@JsonIgnore
	private Long modifier;
	@JsonIgnore
	private Date modifytime;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getJtype() {
		return jtype;
	}

	public void setJtype(Integer jtype) {
		this.jtype = jtype;
	}

	public Long getJid() {
		return jid;
	}

	public void setJid(Long jid) {
		this.jid = jid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}

	public Integer getNum() {
		return num;
	}

	public void setNum(Integer num) {
		this.num = num;
	}

	public Date getValiddate() {
		return validdate;
	}

	public void setValiddate(Date validdate) {
		this.validdate = validdate;
	}

	public Integer getDays() {
		return days;
	}

	public void setDays(Integer days) {
		this.days = days;
	}

	public String getPic() {
		return pic;
	}

	public void setPic(String pic) {
		this.pic = pic;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getMid() {
		return mid;
	}

	public void setMid(Long mid) {
		this.mid = mid;
	}

	public Long getUid() {
		return uid;
	}

	public void setUid(Long uid) {
		this.uid = uid;
	}

	public Long getMpid() {
		return mpid;
	}

	public void setMpid(Long mpid) {
		this.mpid = mpid;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Long getModifier() {
		return modifier;
	}

	public void setModifier(Long modifier) {
		this.modifier = modifier;
	}

	public Date getModifytime() {
		return modifytime;
	}

	public void setModifytime(Date modifytime) {
		this.modifytime = modifytime;
	}

	public Long getGid() {
		return gid;
	}

	public void setGid(Long gid) {
		this.gid = gid;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public Integer getMaxnum() {
		return maxnum;
	}

	public void setMaxnum(Integer maxnum) {
		this.maxnum = maxnum;
	}

	public Integer getMaxnumPuser() {
		return maxnumPuser;
	}

	public void setMaxnumPuser(Integer maxnumPuser) {
		this.maxnumPuser = maxnumPuser;
	}

	public Long getSid() {
		return sid;
	}

	public void setSid(Long sid) {
		this.sid = sid;
	}

	public Long getLeagueid() {
		return leagueid;
	}

	public void setLeagueid(Long leagueid) {
		this.leagueid = leagueid;
	}

	public Float getZhongjianglv() {
		return zhongjianglv;
	}

	public void setZhongjianglv(Float zhongjianglv) {
		this.zhongjianglv = zhongjianglv;
	}

	public Integer getMaxnumPday() {
		return maxnumPday;
	}

	public void setMaxnumPday(Integer maxnumPday) {
		this.maxnumPday = maxnumPday;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "Choujiang{" +
			"id=" + id +
			", jtype=" + jtype +
			", jid=" + jid +
			", name=" + name +
			", value=" + value +
			", num=" + num +
			", validdate=" + validdate +
			", days=" + days +
			", pic=" + pic +
			", sort=" + sort +
			", state=" + state +
			", mid=" + mid +
			", uid=" + uid +
			", mpid=" + mpid +
			", createtime=" + createtime +
			", modifier=" + modifier +
			", modifytime=" + modifytime +
			"}";
	}
}
